<?php
class Tb_Bankers extends Models {
    private $_name = "bankers";
        
    /*
     * Insert
     */
    public function insertBanker($name) {
        
        $fields = 'name';
        $values = '"' . mysql_escape_string($name) . '"';

        $query = 'INSERT IGNORE INTO ' . $this->_name . '(' . $fields . ')
                      VALUES(' . $values . ')';
        $this->query($query);
        
    }
    

    /*
     * Get all touraments
     */
    public function getBanker($name) {
        $banker = NULL;
        
        $query = 'SELECT * FROM '.$this->_name.'
                  WHERE name = "'.$name.'"';
        $banker = $this->fetchRow($query);
        
        return $banker;
    }
}